package com.bgIntlgn.client.entity.custom;

import yuhuibear.poat.annotations.action.AutoGenerateValue;
import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

/**
 * 表示客户具有的加工能力
 * 
 * @author yuhui
 * 
 */
@Table(name = "custom_work_proceducres", constrain = "")
public class CustomWorkProcedure implements Bean {
	@AutoGenerateValue(skipOnNull = true, sqlToGet = "select currval('custom_work_proceducres_id_seq')")
	@Field(name = "id", type = "bigserial", constrain = " primary key")
	private Long id;

	@Field(name = "custom_id", type = "int8", constrain = " not null references customs(id)  on update cascade ")
	private Long customId;

	@Field(name = "contactor_id", type = "int8", constrain = " not null references contactors(id)  on update cascade ")
	private Long contactorId;

	/**
	 * 工序类型(数据字典) [DictioanryType: 工序类型]
	 */
	@Field(name = "type", type = "int8", constrain = "not null references dictionarys(id) on update cascade ")
	private Long type;

	/**
	 * 加工成本修正因子
	 */
	@Field(name = "cost_ratio", type = "float ", constrain = " not null default 0.0")
	private Double costRatio;

	/**
	 * 每件加工费
	 */
	@Field(name = "price", type = "float ", constrain = " not null default 0.0")
	private Double price;

	@Field(name = "comment", type = "varchar(1000)", constrain = "")
	private String comment;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getType() {
		return this.type;
	}

	public void setType(Long type) {
		this.type = type;
	}

	public Double getCostRatio() {
		return this.costRatio;
	}

	public void setCostRatio(Double costRatio) {
		this.costRatio = costRatio;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Long getCustomId() {
		return this.customId;
	}

	public void setCustomId(Long customId) {
		this.customId = customId;
	}

	public Long getContactorId() {
		return this.contactorId;
	}

	public void setContactorId(Long contactorId) {
		this.contactorId = contactorId;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}
